import * as network from '@/utils/request';

import { postHouse } from '../../config/Apis';

const request = (uri: string, params: any) => {
    return network.post(uri, {
        data: params,
        requestType: 'form'
    });
}

export async function getStationList(params: any): Promise<any> {

    return request(postHouse.stationList, params);
}

export async function getStationDetail(params: any): Promise<any> {

    return request(postHouse.stationDetail, params);
}

export async function updStation(params: any): Promise<any> {

    return request(postHouse.stationUpdate, params);
}

export async function getStationName(params: any): Promise<any> {

    return request(postHouse.stationByName, params);
}




